<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <div th:replace="m/head :: head"></div>

    <title>我的</title>

    <style>
        .mypai {
            display: none;
        }
    </style>
</head>

<body class="body-gray">

<div th:replace="m/head :: body('banner.hidden', 'head-nothing', '我的')"></div>

<!--主体内容-->
<div class="my-content">
    <div class="title clearfix">
        <div class="left">
            <img th:if="${user.portrait ne null}" th:src="${#request.getAttribute('uploadServer') + user.portrait}">
            <img th:if="${user.portrait eq null and user.gender eq 0}" th:src="${#request.getAttribute('ctx') + '/static/front/img/gender/portrait-female.jpg'}"/>
            <img th:if="${user.portrait eq null and user.gender eq 1}" th:src="${#request.getAttribute('ctx') + '/static/front/img/gender/portrait-male.jpg'}"/>
        </div>
        <div class="right">
            <p class="name" th:text="${user.account}"></p>
            <p class="name" th:text="${user.nickname}"></p>
        </div>
    </div>
    <ul class="my-list">
        <li>
            <a th:href="@{/order/list/0}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-1.png}"/>
                    <span>我的订单</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
        <li>
            <a th:href="@{/personal/collect/2/2}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-2.png}"/>
                    <span>我的收藏</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
        <li>
            <a th:href="@{'/evaluate/list/2?method=1'}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-3.png}"/>
                    <span>我的评价</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
        <li>
            <a th:href="@{/personal/discountcoupon}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-4.png}"/>
                    <span>优惠券</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
        <li>
            <a th:href="@{/personal/receipt}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-5.png}"/>
                    <span>发票</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
    </ul>
    <ul class="my-list">
        <li>
            <a th:href="@{'/personal?type=1'}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-6.png}"/>
                    <span>我的设置</span>
                </div>
                <div class="right">
                    <i class="iconfont icon-youjiantou1"></i>
                </div>
            </a>
        </li>
        <li>
            <a th:href="@{/logout}" class="clearfix">
                <div class="left">
                    <img th:src="@{/static/m/img/icon/my-icon-7.png}"/>
                    <span>退出登录</span>
                </div>
            </a>
        </li>
    </ul>
</div>


<div th:replace="m/foot :: foot"></div>

</body>

<div th:replace="m/foot :: footer('')"></div>

</html>
